//
//  BlogChoiceViewController.h
//  iFlick
//
//  Created by 张 霄鹤 on 09-9-25.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "DataManager.h"

#import "BlogInfo.h"

#import "WebAuthorizeViewController.h"

@protocol BlogChoiceViewControllerDelegate;

@interface BlogChoiceViewController : UITableViewController<WebAuthorizeViewControllerDelegate,UIAlertViewDelegate,UITextFieldDelegate> {
	NSMutableArray *blogs;
	id<BlogChoiceViewControllerDelegate> _delegate;
	IBOutlet UITableView *table;
	//UIActivityIndicatorView *active;
	NSThread *loadBlogListThread;
	BOOL isLoading;
	BOOL canceled;
	NSInteger currentSelect;
	UIAlertView *alert;
	UITextField *txtPassword;
}

@property(nonatomic, retain) id<BlogChoiceViewControllerDelegate> delegate;

- (void)loadBlogList:(id)sender;
/**
 * 开始Blog加载线程
 */
- (void)startLoadThread:(id)sender;

/**
 * 线程执行操作，执行图像发布
 */
- (void)postPhoto:(id)param;

@end

@protocol BlogChoiceViewControllerDelegate

- (id)selected:(BlogInfo *)blog;

@end

